import { Column, Entity, JoinColumn, ManyToOne } from 'typeorm'
import { Menu } from 'src/modules/menu/entities/menu.entity'
import { Role } from 'src/modules/role/entities/role.entity'
import { App } from 'src/app.entity'
@Entity()
export class Auth extends App {
  @ManyToOne(() => Role)
  @JoinColumn({ name: 'role_id' })
  role: Role
  @Column({ type: 'varchar', name: 'menu_id' })
  menuId: string
}
